Get a single random element from a specified stringΒΆ
Get a single random element from a specified string.
Expected output:
h
import random
print(random.choice('abcdefghijklm')) # e
import random
print(random.choice('abcdefghijklm')) # e